package com.wx.gof.pattern.behavioral.command;

/**
 * @ClassName OpenComputer
 * @Author wx
 * @Description 打开计算机命令
 * @Date 2018-12-14-23:26
 */
public class OpenComputerCommand implements ICommand{
    private Computer computer;

    public OpenComputerCommand(Computer computer) {
        this.computer = computer;
    }

    @Override
    public void execute() {
        this.computer.open();
    }
}
